package com.wanxi.myfor;

public class MySumOneToOneHundred {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 2; i <= 100; i += 2) {
//            boolean isOushu = i % 2 == 0;
//            if (i % 2 == 0) {
//                sum = sum + i;
            sum += i;
//            }
        }
        System.out.println(sum);
    }
}
